package cn.yunlang.zhangZhongFei.service;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import cn.yunlang.zhangZhongFei.entity.Goods;
import cn.yunlang.zhangZhongFei.vo.request.CompanyVo;
import cn.yunlang.zhangZhongFei.vo.response.R;

/**
 * 公司表 服务类
 *
 * @author ·
 * @since 2025-05-26 14:50:46
 */
public interface GoodsService extends IService<Goods> {

  R<IPage<Goods>> getPage(Page<Goods> page, Long userId, Long publisherId, String companyName);

  /** 分页查询商品 */
  R<Goods> getOne(Long goodsId);

  R<String> deleteGoods(Long goodsId);

  R<String> updateGoods(Goods goods, String userId);

  R<String> addNew(CompanyVo companyVo);
}
